package cn.hjh.dao.user;

import cn.hjh.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    /**
     * 查询用户列表
     * @param
     * @return
     */
    public List<User> getUserListByMap(Map<String,String> userMap);

    public List<User> getUserList(User user);

    int add(User user);

    int modify(User user);

    int updatePwd(@Param("id")Integer id,@Param("userPassword")String pwd);


   public int deleteUserById(@Param("id")Integer delId);

    List<User> getUserListByRoleId(@Param("userRole")Integer roleId);

    public List<User> getAddressListByUserId(@Param("id")Integer userId);
}
